<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <!-- import CSS -->
  <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
  <style>
    .c1{border: 1px solid red;border-radius: 5px;height: 50px}
  </style>
</head>
<body>
<div id="app">
  <el-row>
    <!--el-col表示列-->
    <el-col :span="12"><div class="c1"></div></el-col>
    <el-col :span="12"><div class="c1"></div></el-col>
  </el-row>
  <!--:gutter设置间距 span设置当前列所占的分栏数量-->
  <el-row :gutter="20">
    <el-col :span="8"><div class="c1"></div></el-col>
    <el-col :span="8"><div class="c1"></div></el-col>
    <el-col :span="8"><div class="c1"></div></el-col>
  </el-row>
  <h1>带有居中效果的4等份</h1>
  <div style="width: 1000px;margin: 0 auto">
    <el-row>
      <el-col :span="6"><div class="c1"></div></el-col>
      <el-col :span="6"><div class="c1"></div></el-col>
      <el-col :span="6"><div class="c1"></div></el-col>
      <el-col :span="6"><div class="c1"></div></el-col>
    </el-row>
  </div>
  <h1>划分3部分比例为1:2:3  间隔30个像素   整体居中</h1>
  <div style="width: 1200px;margin: 0 auto">
    <el-row :gutter="30">
      <el-col :span="4"><div class="c1"></div></el-col>
      <el-col :span="8"><div class="c1"></div></el-col>
      <el-col :span="12"><div class="c1"></div></el-col>
    </el-row>
  </div>
  <h1>分栏偏移</h1>
  <el-row >
    <!--:offset设置偏移的分栏数量-->
    <el-col :span="20" :offset="4"><div class="c1"></div></el-col>
  </el-row>


</div>
</body>
<!-- import Vue before Element -->
<script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
<!-- import JavaScript -->
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<script>
  let v = new Vue({
    el: '#app',
    data: function() {
      return {//在这里面定义变量

      }
    }
  })
</script>
</html>